package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.model.order.OrderInfo;
import com.atguigu.gmall.model.payment.PaymentInfo;

import java.util.Map;

public interface PaymentService {
    void savePaymentInfo(OrderInfo orderInfo, String name);

    PaymentInfo getPaymentInfo(String out_trade_no, String name);

    void paySuccess(PaymentInfo paymentInfo, Map<String, String> paramsMap);


    void closePayment(Long orderId);

    void update(PaymentInfo paymentInfo);
}
